window.test = {};

test.URL = function () {
	
	alert(1);
	alert(2);
	
    function e() {
        return !(!window.history || !history.pushState);
    }
    
    var t = "";
    
    return {
        readID: function () {
            var e = window.location.pathname.split("/")[1];
            return t.length ? t : e.length ? e : window.location.hash.slice(1)
        },
        writeID: function (o) {
            t = o, e() && history.pushState({}, "Sketch Toy: " + o, "/" + o);
            var n = $('meta[property="og:url"]');
            0 === n.length && (n = $('<meta property="og:url" />'), n.appendTo($("head"))), n.attr("content", sketch.Main.getSketchShareURL())
        }
    };
}();

alert(window.test.URL);